package kr.pfg.applications.captureyourscreen.events
{
	import flash.display.NativeMenuItem;
	import flash.events.Event;
	/**
	 * @place PFG.kr
	 * @author Daparan
	 * @explanation Select the menu will pass the value of NativeMenuItem
	 * @new NativeMenuEvent( NativeMenuEvent.MENU_SELECT, item );
	 */	
	public class NativeMenuEvent extends Event
	{
		public static const MENU_SELECT: String = "menu_selete";
		public var item: NativeMenuItem;
		
		public function PfgNativeMenuEvent(type: String, item: NativeMenuItem, bubbles: Boolean = false, cancelable: Boolean = false)
		{
			super(type, bubbles, cancelable);
			this.item = item;
		}
		/**
		 * @return 
		 * Overridden clone
		 */		
		override public function clone(): Event
		{
			return new PfgNativeMenuEvent( type, item, bubbles, cancelable );
		}
		/**
		 * @return 
		 * Overridden toString
		 */		
		override public function toString(): String
		{
			return formatToString( "PfgNativeMenuEvent", "type", "item", "bubbles", "cancelable", "eventPhase" );
		}
	}
}